using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using KBE_HotFix.Scene;
using KBE_HotFix.UI;
using ResLoader = HotFixFramework.ResLoader;

namespace KBE_HotFix.Game
{

    public static class GameMain
    {
        public static void Main()
        {
            InitScene();
        }

        private static void InitScene()
        {
            SceneManager.Ins.RegisterUIInit("1_Login", ()=>
            {
                LoginScene scene = new LoginScene();

                var login = ResLoader.LoadPrefab("Login");
                scene.Login = UnityEngine.Object.Instantiate(login, UIObject.Center.transform);
                scene.Login.name = "Login";

                var createAvatar = ResLoader.LoadPrefab("CreateAvatar");
                scene.Create = UnityEngine.Object.Instantiate(login, UIObject.Center.transform);;
                scene.Create.name = "CreateAvatar";
                scene.Create.SetActive(false);
            });
        }
    }

}